<?php

class Response {

    protected $values = array();
    protected $hasError = false;
    protected $errors = array();

    /** Set Variables * */
    public function set($name, $value) {
        $this->values[$name] = $value;
    }

    public function addError($desc) {
        array_push($this->errors, $desc);
    }
    
    public function hasError(){
        return count($this->errors) > 0;
    }
    
    public function getErrors(){
        return $this->errors;
    }
    
    public function getValues(){
        return $this->values;
    }

}
